home *** CD-ROM | disk | FTP | other *** search
- package com.extensibility.xa;
-
- import com.extensibility.app.UI;
- import com.extensibility.xml.BaseDeclaration;
- import com.extensibility.xml.DeclarationChangeEvent;
- import com.extensibility.xml.ProcessingInstruction;
- import com.extensibility.xml.SchemaIntf;
-
- class CommentPane$10 implements SchemaDocListener {
- // $FF: synthetic field
- final CommentPane this$0;
-
- public void flavorChanged(SchemaDocEvent var1) {
- this.this$0.getPreviewBtn().updateText();
- if (this.this$0.doc.getSchema().getFlavorName().equals(SchemaIntf.SOX2_FLAVOR_NAME)) {
- this.this$0.tabPane.setTitleAt(1, UI.getString("tab.author.label.sox"));
- this.this$0.tabPane.setTitleAt(2, UI.getString("tab.usage.label.sox"));
- } else {
- this.this$0.tabPane.setTitleAt(1, UI.getString("tab.author.label"));
- this.this$0.tabPane.setTitleAt(2, UI.getString("tab.usage.label"));
- }
-
- }
-
- public void declarationListReordered(SchemaDocEvent var1) {
- }
-
- public void declarationChanged(SchemaDocEvent var1, DeclarationChangeEvent var2) {
- if (this.this$0.getActiveDecl() == var2.getDeclaration()) {
- this.this$0.updateTexts(true);
- }
-
- }
-
- public void declarationListChanged(SchemaDocEvent var1) {
- if (var1.getDeclaration() == null) {
- this.this$0.setActiveDecl((BaseDeclaration)null);
- } else if (var1.getDeclaration() instanceof ProcessingInstruction) {
- ProcessingInstruction var2 = (ProcessingInstruction)var1.getDeclaration();
- if (var2.getTarget().equals("XA_VERSION_HISTORY") && this.this$0.getShowMode() == 2 && this.this$0.tabPane.getSelectedIndex() == 3) {
- this.this$0.updateTexts(false);
- }
-
- }
- }
-
- public void declarationRemoved(SchemaDocEvent var1) {
- this.declarationListChanged(var1);
- }
-
- public void declarationInserted(SchemaDocEvent var1) {
- this.declarationListChanged(var1);
- }
-
- CommentPane$10(CommentPane var1) {
- this.this$0 = var1;
- }
- }
-